import request from '@/utils/request'
import dart from 'highlight.js/lib/languages/dart'

// 查询奖励情况列表
export function listAward(query) {
  return request({
    url: '/award/award/list',
    method: 'get',
    params: query
  })
}

// 查询奖励情况详细
export function getAward(id) {
  return request({
    url: '/award/award/' + id,
    method: 'get'
  })
}

// 新增奖励情况
export function addAward(data) {
  return request({
    url: '/award/award',
    method: 'post',
    data: data
  })
}

// 修改奖励情况
export function updateAward(data) {
  return request({
    url: '/add/add/update',
    method: 'put',
    data: data
  })
}

// 删除奖励情况
export function delAward(id) {
  return request({
    url: '/award/award/' + id,
    method: 'delete'
  })
}




// 批量添加
export function addAwardList(data) {
  return request({
    url: '/add/add/award',
    method: 'post',
    data: data
  })
}

// 等级列表
export function getRewardList() {
  return request({
    url: '/morescreeningdate/morescreeningdate/ifmReward',
    method: 'get',
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}
